body {
  font-family: "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f3f3f4, #d6d3d5);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
}

h1 {
  color: #3505c4;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ok{
font-size: 14px ;
font-weight: 600;
margin-bottom: 20px;
color: #656262;


}
.todo-app {
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
}
.todo-app.with-bg {
  background-color: rgba(255, 255, 255, 0.7);
}

.todo-app1 {
  background: #fff;
  margin-top: 20px;
  height: 50px;
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.todo-app1.with-bg {
  background-color: rgba(255, 255, 255, 0.7);
}

.zi {
 font-size: 14px;
 color: #746e6e;
 text-align: center;
 
}

.input-container {
  display: flex;
  gap: 10px;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

button {
  background-color: #409fe3;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #6b85f7;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

li {
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

li.completed {
  text-decoration: line-through;
  color: #aaa;
  background: #e0e0e0;
}

li.fade-out {
  opacity: 0;
  transform: translateX(50px);
}

.filters {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 10px;
}

.filters button.active {
  background-color: #6b85f7;
}

@media (max-width: 500px) {
  .todo-app {
    padding: 1rem;
  }

  input[type="text"] {
    font-size: 14px;
  }
}

.photo {
  width: 14px;
  display: inline-block
}
.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.delete-btn:hover {
  background-color: rgba(144, 132, 132, 0.15);
}

.delete-icon {
  width: 16px;
  height: 16px;
  display: block;
}
/* ✅ 自定义复选框样式 */
.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #7f5af0;
  border-radius: 4px;
  display: inline-block;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-checkbox.checked {
  background-color: #007bff;
  border-color: #007bff;
}

.custom-checkbox.checked::after {
  content: '✔';
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-size: 10px;
  font-weight: bold;
}
body {
  background-color: #f2f2f2;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: background 0.5s ease;
  cursor: pointer; /* ✅ 鼠标悬停时提示可点击 */
}
.delete-bg-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 15px;
  height: 15px;
  background: url('images/垃圾桶.png') no-repeat center center;
  background-size: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.delete-bg-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}


